<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Vue 测试实例  单个复选框：</title>
        <script src="https://unpkg.com/vue@next"></script>
    </head>
    <body>
        <div id ="app">
            <input type="radio" id="baidu" value="百度" v-model="picked">
            <label for="baidu.com">百度</label>
            <br>
            <input type="radio" id="jd" value="京东" v-model="picked">
            <label for="jd">京东</label>
            <br>
            <span>选中值为: {{picked}}</span>
        </div>

        <script>
            const app = {
                data() {
                    return {
                        picked : 'Runoob'
                    }
                }
            }
            Vue.createApp(app).mount('#app')
        </script>
    </body>
</html>